package cn.pacerx.running.wx.dto;

import java.time.LocalDate;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import cn.pacerx.running.db.enums.RepeatTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("事件实体")
public class EventDto {
    @ApiModelProperty("事件id")
    private Long id;

    @NotBlank
    @ApiModelProperty("名称")
    private String title;

    @NotNull
    @ApiModelProperty("目标日期")
    private LocalDate targetDate;

    @NotNull
    @ApiModelProperty("重复类型")
    private RepeatTypeEnum repeatType =  RepeatTypeEnum.NONE;

    @ApiModelProperty("包含起始日")
    private Boolean hasStartDate;

    @ApiModelProperty("备注")
    private String remark;
}
